package com.ccz.demo.design.singleton.jingtaineibulei;

/**
 * 静态内部类
 * @ClassName Single
 * @Author caihaoyun
 * @Date 2020/7/6
 * @Version V1.0
 **/
public class Single {

    private Single() {}
    public static Single getInstance() {
        return Inner.instance;
    }

    public static class Inner {
        private static final Single instance = new Single();
    }
}
